package com.isp.gateway.web.model;


import com.isp.common.model.ResultCode;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/1/23 15:01
 */
public enum ResultCodeEnum implements ResultCode {
    /**
     * 10****
     */

    GATEWAY_NOT_FOUND_SERVICE(110000, "服务未找到"),
    GATEWAY_ERROR(110001, "网关异常"),
    GATEWAY_CONNECT_TIME_OUT(110002, "网关超时"),

    INVALID_TOKEN(110004, "无效token"),

    ;

    private final Integer ret;
    private final String msg;

    ResultCodeEnum(Integer ret, String msg) {
        this.ret = ret;
        this.msg = msg;
    }

    @Override
    public Integer getRet() {
        return ret;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
